package com.imooc.spring.classone;

public class XiaoDi3 implements XiaoDi{

    private final XiaoDi xiaoDi;

    public XiaoDi3(XiaoDi xiaoDi) {
        this.xiaoDi = xiaoDi;
    }

    public int calculate(int a, int b) {
        System.out.println(this.getClass().getName() + ": I'm beginning to calculate");
        return xiaoDi.calculate(a, b);
    }

}
